#include<cstdio>
int main(){
	char a[200];
	gets(a);
	int i=0;
	int Uppercount=0;
	int Lowercount=0;
	int Othercount=0;
	while(a[i]!='\0'){
		if(a[i]>=65 && a[i]<=90){
			Uppercount++;
		}
		else if(a[i]>=97 && a[i]<=122){
			Lowercount++;
		}
		else{
			Othercount++;
		}
		i++;
	}
	printf("Upper letters:%3d\n",Uppercount);
	printf("Lower letters:%3d\n",Lowercount);
	printf("Other:%3d\n",Othercount);
} 
